package com.example.dml.decorator_pattern.low;

/**
 * @Authors：gaoyang
 * @CreateTime：2021-11-01
 * @Description：todo
 */
public class BatterCakeTest {

    public static void main(String[] args) {
        BatterCake batterCake = new BatterCake();
        System.out.println(batterCake.getMsg()+",总价格："+batterCake.getPrice());
        BatterCake batterCakeWithEgg = new BatterCakeWithEgg();
        System.out.println(batterCakeWithEgg.getMsg()+",总价格："+batterCake.getPrice());
        BatterCake batterCakeWithEggAndSausage = new BatterCakeWithEggAndSausage();
        System.out.println(batterCakeWithEggAndSausage.getMsg()+",总价格："+batterCake.getPrice());
    }
}
